package net.csdn.business.common.domain.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.csdn.business.common.constant.CommonConstants;

/**
 * @author chenji
 * @date 2022/7/29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RepositoryDto {
    /**
     * 关键词
     */
    private String key;
    /**
     * 可见性
     */
    private String visibility;
    /**
     * 代码库归属
     */
    private String belong;

    /**
     * 排序
     * 可选：star_count/last_activity_at  默认按last_activity_at排序
     */
    private String orderBy = CommonConstants.PROJECT_DEFAULT_ORDER;

    /**
     * 默认desc
     * 可选：asc/desc
     */
    private String sort = "desc";

    private Long page;

    private Long pageSize;
}
